package de.ttf.ts.model;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;

@Entity
public class Team extends BaseEntity<Team> {
    private static final long serialVersionUID = 1L;

    @ManyToOne
    private Player playerOne;

    @ManyToOne
    private Player playerTwo;

    public Player getPlayerOne() {
        return playerOne;
    }

    public void setPlayerOne(Player playerOne) {
        this.playerOne = playerOne;
    }

    public Player getPlayerTwo() {
        return playerTwo;
    }

    public void setPlayerTwo(Player playerTwo) {
        this.playerTwo = playerTwo;
    }

}
